package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.BusinessEntity;
import com.example.demo.mapper.DsBusinessMapper;
import com.example.demo.service.IDsBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author dxd
 * @since 2020-09-03
 */
@Service
public class DsBusinessServiceImpl extends ServiceImpl<DsBusinessMapper, BusinessEntity> implements IDsBusinessService {

    @Autowired
    DsBusinessMapper mapper;

    public List<Map> listTables() {
        return mapper.listTables();
    }

    @Override
    public void removeByBusi(String businessType) {
        mapper.deleteByBusiness(businessType);
    }
}
